import request from '@/utils/request'

// 查询考试试卷列表
export function listMark(query) {
  return request({
    url: '/paper/mark/list',
    method: 'get',
    params: query
  })
}

// 查询考生答卷总列表
export function listExaminee(query) {
  return request({
    url: '/paper/mark/listExaminee',
    method: 'get',
    params: query
  })
}

// 查询考生答卷总详细
export function getExamineeExamInfo(paperId,userId,examineeId) {
  return request({
    url: '/paper/mark/getExamineeExamInfo/' + paperId+'/' + userId+'/' + examineeId,
    method: 'get'
  })
}

// 获取下一个考生答卷详细信息
export function getNextExamineeExamInfo(paperId) {
  return request({
    url: '/paper/mark/getNextExamineeExamInfo/' + paperId,
    method: 'get'
  })
}

// 提交阅卷
export function submitMark(paperId,userId,examineeId,data) {
  return request({
    url: '/paper/mark/submitMark/' + paperId+'/' + userId+'/' + examineeId,
    method: 'post',
    data: data
  })
}

// 暂存阅卷
export function tempMark(paperId,examineeId,data) {
  return request({
    url: '/paper/mark/tempMark/' + paperId+'/' + examineeId,
    method: 'post',
    data: data
  })
}
